x = 1:4

for i=1:length(x),
    x(i)=x(i)^2;
end
x

iter=0
err=1
while(err > 1e-8 && iter < 100)
    iter=iter+1
    err=err/10
end